package org.proddevplm.dao.core;

import org.proddevplm.dao.api.*;

public class DAOManager {

    private IRolesMgmt roleManager;
    private IUserMgmt userManager;
    private IProjectMgmt projectManager;
    private IProductMgmt productManager;
    private IToolsMgmt toolsManager;
    private IDataAccessMgmt dataAccessManager;
    private IResourceMgmt resourceManager;
    private IAdminMgmt adminManager;
    private IDiaMgmt diaManager;
    private IActivityMgmt activityManager;
    private IOpenRoomMgmt openRoomManager;

    public IRolesMgmt getRoleManager() {
        if (roleManager == null) {
            roleManager = new RolesMgmt();
        }
        return roleManager;
    }


    public IUserMgmt getUserManager() {
        if (userManager == null) {
            userManager = new UserMgmt();
        }
        return userManager;
    }
    
    public IProjectMgmt getProjectManager(){
    	if (projectManager == null){
    		projectManager = new ProjectMgmt();
    	}
    	return projectManager;
    }
    
    public IProductMgmt getProductManager(){
    	if (productManager == null){
    		productManager = new ProductMgmt();
    	}
    	return productManager;
    }
    
    public IToolsMgmt getToolsManager(){
    	if (toolsManager == null) {
    		toolsManager = new ToolsMgmt();
    	}
    	return toolsManager;
    }
    
    public IDataAccessMgmt getDataAccessManager(){
    	if (dataAccessManager == null){
    		dataAccessManager = new DataAccessMgmt();
    	}
    	return dataAccessManager;
    }
    
    public IResourceMgmt getResourceManager() {
        if (resourceManager == null) {
            resourceManager = new ResourceMgmt();
        }
        return resourceManager;
    }
    
    public IAdminMgmt getAdminManager(){
    	if (adminManager == null){
    		adminManager = new AdminMgmt();
    	}
    	return adminManager;
    }
    
    public IDiaMgmt getDiaManager(){
    	if (diaManager == null){
    		diaManager = new DiaMgmt();
    	}
    	return diaManager;
    }
    
    public IActivityMgmt getActivityManager(){
    	if (activityManager == null){
    		activityManager = new ActivityMgmt();
    	}
    	return activityManager;
    }
    
    public IOpenRoomMgmt getOpenRoomManager(){
    	if (openRoomManager == null){
    		openRoomManager = new OpenRoomMgmt();
    	}
    	return openRoomManager;
    }

}
